<%--
  Created by IntelliJ IDEA.
  User: longl
  Date: 2020/8/22
  Time: 14:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="shrio" uri="http://shiro.apache.org/tags" %>
<html>
<body>
<li class="nav-item dropdown">
    <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
       aria-expanded="false"><span class="ti-home"></span> 首页</a>
    <div class="dropdown-menu">
        <a class="dropdown-item" href="${bathPaht}/adminLogin/adminIndex">默认</a>
    </div>
</li>
<li class="nav-item dropdown">
    <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
       aria-expanded="false"><span class="ti-user"></span> 医生管理</a>
    <div class="dropdown-menu">
        <a class="dropdown-item" href="/doctor/add_jsp">添加医生信息</a>
        <a class="dropdown-item" href="/department/showDepartments">查询科室信息</a>
    </div>
</li>
<li class="nav-item dropdown">
    <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
       aria-expanded="false"><span class="ti-wheelchair"></span> 病人管理</a>
    <div class="dropdown-menu">
        <a class="dropdown-item" href="/patient/toPatient">查看病人信息</a>
    </div>
</li>
<li class="nav-item dropdown">
    <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
       aria-expanded="false"><span class="ti-pencil-alt"></span> 挂号管理</a>
    <div class="dropdown-menu">
        <a class="dropdown-item" href="/register/registerDetail">查看挂号信息</a>
    </div>
</li>

<shiro:hasRole name="SUPERADMINISTATOR">
    <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
           aria-expanded="true" href="#">
            <span class="ti-file"></span>管理权限
        </a>
        <div class="dropdown-menu">
            <shrio:hasPermission name="power:toPowerIndex">
                <a class="dropdown-item" href="/power/toPowerIndex">查看所有后台用户</a>
            </shrio:hasPermission>
            <shrio:hasPermission name="power:queryAllAuthority">
                <a class="dropdown-item" href="/power/queryAllAuthority">分配后台权限</a>
            </shrio:hasPermission>
            <shrio:hasPermission name="power:updateAuthority">
                <a class="dropdown-item" href="/power/updateAuthority">更新权限</a>
            </shrio:hasPermission>
        </div>
    </li>
</shiro:hasRole>
</body>
</html>
